package com.briup.myblog.dao.ext;

import com.briup.myblog.bean.basic.Category;
import com.briup.myblog.bean.ext.CategoryExt;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface CategoryExtMapper {
    List<CategoryExt> selectCategoryAll();

    int insertNoParent(String categoryDescription, String categoryName, Integer categoryOrder);

    int insert(String categoryDescription, String categoryName, Integer categoryOrder, Integer categoryParentId);

    //根据父栏目id查找栏目
    List<CategoryExt> selectByParentId(Integer id);

    //查找名称
    CategoryExt findCategoryName(String categoryName);

    CategoryExt findCategoryName1(String categoryName, int n);
}
